from base.base_page import BasePage


class ToolsPage(BasePage):

    def btn_pdf2word(self):
        return self.by_uiautomator('new UiSelector().text("PDF转Word")').click()

    def btn_pdf2excel(self):
        return self.by_uiautomator('new UiSelector().text("PDF转Excel")').click()

    def btn_pdf2img(self):
        return self.by_uiautomator('new UiSelector().text("PDF转图片")').click()

    def btn_pdf2img_long(self):
        return self.by_uiautomator('new UiSelector().text("PDF转长图")').click()

    def btn_pdfMerge(self):
        return self.by_uiautomator('new UiSelector().text("PDF合并")').click()

    def btn_img_share(self):
        return self.by_id(self.HW_ENV + 'img_extension').click()